package com.culture.java.online.education.platform.common.web.config;

import com.culture.java.online.education.platform.common.web.exception.handler.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebConfig {

    // 此处的方法名不能是globalExceptionHandler
    @Bean
    public GlobalExceptionHandler exceptionHandler() {
        return new GlobalExceptionHandler();
    }

}
